package com.pfzy.lib.config.evn;

public class EnvConfig {
    private static int mEnv = Environment.ENV_DEV;
    private static String mBaseUrl = Environment.BASE_URL_DEBUG;
    private static String mBaseWeb = Environment.BASE_WEB_DEBUG;

    public static void ChangeEnv(int env) {
        switch (env) {
            case Environment.ENV_RELEASE:
                mBaseUrl = Environment.BASE_URL_RELEASE;
                mBaseWeb = Environment.BASE_WEB_RELEASE;
                break;
            default:
                mBaseUrl = Environment.BASE_URL_DEBUG;
                mBaseWeb = Environment.BASE_WEB_DEBUG;
                break;
        }
        mEnv = env;
    }

    public static int getEnv() {
        return mEnv;
    }

    public static String getBaseUrl(){
        return mBaseUrl;
    }

    public static String getBaseWeb(){
        return mBaseWeb;
    }
}
